package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 雨排口疑似偷排记录表
 *
 * @author system
 * @since 2025-01-11
 */
@Getter
@Setter
@TableName("rainfall_outlet_suspected_discharge")
@Schema(description = "雨排口疑似偷排记录表")
public class RainfallOutletSuspectedDischarge implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "站点ID")
    @TableField("site_id")
    private Integer siteId;

    @Schema(description = "站点名称")
    @TableField("site_name")
    private String siteName;

    @Schema(description = "疑似偷排开始时间")
    @TableField("suspected_start_time")
    private LocalDateTime suspectedStartTime;

    @Schema(description = "疑似偷排结束时间")
    @TableField("suspected_end_time")
    private LocalDateTime suspectedEndTime;

    @Schema(description = "最大上报值")
    @TableField("factor_max")
    private BigDecimal factorMax;

    @Schema(description = "最小上报值")
    @TableField("factor_min")
    private BigDecimal factorMin;

    @Schema(description = "平均上报值")
    @TableField("factor_avg")
    private BigDecimal factorAvg;

    @Schema(description = "阈值")
    @TableField("threshold_value")
    private BigDecimal thresholdValue;

    @Schema(description = "超标比例(%)")
    @TableField("exceed_ratio")
    private BigDecimal exceedRatio;

    @Schema(description = "是否已核实：1-已核实，0-未核实")
    @TableField("is_verified")
    private Boolean isVerified;

    @Schema(description = "核实结果")
    @TableField("verification_result")
    private String verificationResult;

    @Schema(description = "核实时间")
    @TableField("verification_time")
    private LocalDateTime verificationTime;

    @Schema(description = "核实人")
    @TableField("verification_by")
    private String verificationBy;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
